﻿
namespace Integration
{
    public class CsvDeserializerFieldMapping
    {
        /// <summary>
        /// The index of the column
        /// </summary>
        public int Index { get; set; }

        /// <summary>
        /// The name of the column in the CSV file, not really required but useful for error report
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// The name of the property to be populated
        /// </summary>
        public string PropertyName { get; set; }

        /// <summary>
        /// Whether the length of the string was specified and instead of throwing an exception, truncate the string to fit the field
        /// </summary>
        public bool TruncateToFit { get; set; }
    }
}
